FIX #38911
This commit is contained in:
parent
4e67d8b519
commit
7ab0debd1b
2 changed files with 7 additions and 0 deletions
|
|
@ -511,6 +511,12 @@ class CashControl extends CommonObject
|
|||
*/
|
||||
public function delete(User $user, $notrigger = 0)
|
||||
{
|
||||
// Test is status of cashcontrol is close
|
||||
if ($this->status == $this::STATUS_CLOSED) {
|
||||
$this->error = 'ErrorDeletingAClosedCashControlIsNotPossible';
|
||||
return -1;
|
||||
}
|
||||
|
||||
return $this->deleteCommon($user, $notrigger);
|
||||
//return $this->deleteCommon($user, $notrigger, 1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -388,6 +388,7 @@ ErrorModuleBuilderFailedToInit=Failed to init the object with the new %s (%s)
|
|||
ErrorThirdPartyNotFound=Error ThirdParty Not Found
|
||||
ErrorDynamicPHPContentNotAllowed=Error: %s=1 so dynamic PHP content is allowed only if RCE PHP functions (exec, shell_exec, ...) are all disabled.
|
||||
ErrorTooManyLinksIntoHTMLString=The HTML content contains too many links or images. Reduce the number or raise MAIN_SECURITY_MAX_IMG_IN_HTML_CONTENT.
|
||||
ErrorDeletingAClosedCashControlIsNotPossible=Deleting a closed cash control is not possible
|
||||
|
||||
# Warnings
|
||||
WarningParamUploadMaxFileSizeHigherThanPostMaxSize=Your PHP parameter upload_max_filesize (%s) is higher than PHP parameter post_max_size (%s). This is not a consistent setup.
|
||||
|
|
|
|||
Loading…
Reference in a new issue