Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/editor/PhrictionTransactionEditor.php
Show First 20 Lines • Show All 345 Lines • ▼ Show 20 Lines | protected function validateTransaction( | ||||
array $xactions) { | array $xactions) { | ||||
$errors = parent::validateTransaction($object, $type, $xactions); | $errors = parent::validateTransaction($object, $type, $xactions); | ||||
foreach ($xactions as $xaction) { | foreach ($xactions as $xaction) { | ||||
switch ($type) { | switch ($type) { | ||||
case PhrictionDocumentContentTransaction::TRANSACTIONTYPE: | case PhrictionDocumentContentTransaction::TRANSACTIONTYPE: | ||||
if ($xaction->getMetadataValue('stub:create:phid')) { | if ($xaction->getMetadataValue('stub:create:phid')) { | ||||
continue; | break; | ||||
} | } | ||||
if ($this->getProcessContentVersionError()) { | if ($this->getProcessContentVersionError()) { | ||||
$error = $this->validateContentVersion($object, $type, $xaction); | $error = $this->validateContentVersion($object, $type, $xaction); | ||||
if ($error) { | if ($error) { | ||||
$this->setProcessContentVersionError(false); | $this->setProcessContentVersionError(false); | ||||
$errors[] = $error; | $errors[] = $error; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |