Merge pull request #16581 from frederic34/patch-7
Do not return specimen if searching empty string value
This commit is contained in:
commit
5c7685c1b8
@ -66,7 +66,7 @@ class AgendaEvents extends DolibarrApi
|
||||
if (!DolibarrApiAccess::$user->rights->agenda->myactions->read) {
|
||||
throw new RestException(401, "Insufficient rights to read an event");
|
||||
}
|
||||
if ($id == 0) {
|
||||
if ($id === 0) {
|
||||
$result = $this->actioncomm->initAsSpecimen();
|
||||
} else {
|
||||
$result = $this->actioncomm->fetch($id);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user