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