#1215: URL fields can now store up to 2048 characters

SVN:trunk[4030]
This commit is contained in:
Denis Flaven
2016-05-04 09:55:24 +00:00
parent 2b12a86fa8
commit 3c4845cf99
4 changed files with 76 additions and 2 deletions

View File

@@ -407,6 +407,18 @@ abstract class CMDBObject extends DBObject
$oMyChangeOp->Set("prevdata", json_encode($original->GetValues()));
$iId = $oMyChangeOp->DBInsertNoReload();
}
elseif ($oAttDef instanceOf AttributeURL)
{
// URLs
//
$oMyChangeOp = MetaModel::NewObject("CMDBChangeOpSetAttributeURL");
$oMyChangeOp->Set("objclass", get_class($this));
$oMyChangeOp->Set("objkey", $this->GetKey());
$oMyChangeOp->Set("attcode", $sAttCode);
$oMyChangeOp->Set("oldvalue", $original);
$oMyChangeOp->Set("newvalue", $value);
$iId = $oMyChangeOp->DBInsertNoReload();
}
else
{
// Scalars