FIX If no end date is set on survey, we should be able to vote.
This commit is contained in:
parent
420bfd8301
commit
c64c1a0201
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2013-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -46,7 +46,7 @@ if ($result <= 0) dol_print_error('','Failed to get survey id '.$numsondage);
|
|||||||
$nblignes=$object->fetch_lines();
|
$nblignes=$object->fetch_lines();
|
||||||
|
|
||||||
//If the survey has not yet finished, then it can be modified
|
//If the survey has not yet finished, then it can be modified
|
||||||
$canbemodified = ($object->date_fin > dol_now());
|
$canbemodified = (empty($object->date_fin) || $object->date_fin > dol_now());
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user