Commit 1ca56705 by Cyril Vazquez

FIX description object misspelled

parent 133dc8b3
......@@ -267,14 +267,14 @@ trait archiveModificationTrait
}
if ($description) {
$descritionObject = json_decode($description);
$descriptionObject = json_decode($description);
if (!empty($archive->archivalProfileReference)) {
$this->useArchivalProfile($archive->archivalProfileReference);
if (!empty($this->currentArchivalProfile->descriptionClass)) {
$this->validateDescriptionClass($descritionObject, $this->currentArchivalProfile);
$this->validateDescriptionClass($descriptionObject, $this->currentArchivalProfile);
} else {
$this->validateDescriptionModel($descritionObject, $this->currentArchivalProfile);
$this->validateDescriptionModel($descriptionObject, $this->currentArchivalProfile);
}
}
......@@ -283,7 +283,7 @@ trait archiveModificationTrait
} else {
$descriptionController = $this->useDescriptionController('recordsManagement/description');
}
$archive->descritionObject = $descritionObject;
$archive->descriptionObject = $descriptionObject;
$descriptionController->update($archive);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment