Se agregan validaciones en Output Document

This commit is contained in:
Daniel Rojas
2014-04-16 09:57:12 -04:00
parent f0b857be70
commit ef727ea8e8

View File

@@ -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 = '';