Se agregan validaciones en Output Document
This commit is contained in:
@@ -307,7 +307,7 @@ class OutputDocument
|
||||
if ($oOutputDocument->validate()) {
|
||||
$oConnection->begin();
|
||||
if (isset($aData['OUT_DOC_TITLE'])) {
|
||||
$uid = $this->existTitle($sProcessUID, $aData["OUT_DOC_TITLE"]);
|
||||
$uid = $this->titleExists($sProcessUID, $aData["OUT_DOC_TITLE"]);
|
||||
if ($uid != '') {
|
||||
if ($uid != $sOutputDocumentUID && $sFlag == 0) {
|
||||
throw (new \Exception(\G::LoadTranslation("ID_OUTPUT_NOT_SAVE")));
|
||||
@@ -413,7 +413,7 @@ class OutputDocument
|
||||
* @param string $title Title
|
||||
*
|
||||
*/
|
||||
public function existTitle($processUid, $title)
|
||||
public function titleExists($processUid, $title)
|
||||
{
|
||||
try {
|
||||
$aResp = '';
|
||||
|
||||
Reference in New Issue
Block a user