Differential D19663 Diff 47002 src/applications/phriction/xaction/PhrictionDocumentEditTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/xaction/PhrictionDocumentEditTransaction.php
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | public function newRemarkupChanges() { | ||||
$changes[] = $this->newRemarkupChange() | $changes[] = $this->newRemarkupChange() | ||||
->setOldValue($this->getOldValue()) | ->setOldValue($this->getOldValue()) | ||||
->setNewValue($this->getNewValue()); | ->setNewValue($this->getNewValue()); | ||||
return $changes; | return $changes; | ||||
} | } | ||||
public function validateTransactions($object, array $xactions) { | |||||
$errors = array(); | |||||
$content = $object->getContent()->getContent(); | |||||
if ($this->isEmptyTextTransaction($content, $xactions)) { | |||||
$errors[] = $this->newRequiredError( | |||||
pht('Documents must have content.')); | |||||
} | |||||
return $errors; | |||||
} | |||||
} | } |