Page MenuHomePhabricator

D11785.id28406.diff
No OneTemporary

D11785.id28406.diff

diff --git a/src/applications/legalpad/editor/LegalpadDocumentEditor.php b/src/applications/legalpad/editor/LegalpadDocumentEditor.php
--- a/src/applications/legalpad/editor/LegalpadDocumentEditor.php
+++ b/src/applications/legalpad/editor/LegalpadDocumentEditor.php
@@ -51,7 +51,7 @@
case LegalpadTransactionType::TYPE_PREAMBLE:
return $object->getPreamble();
case LegalpadTransactionType::TYPE_REQUIRE_SIGNATURE:
- return $object->getRequireSignature();
+ return (bool)$object->getRequireSignature();
}
}
@@ -64,8 +64,9 @@
case LegalpadTransactionType::TYPE_TEXT:
case LegalpadTransactionType::TYPE_SIGNATURE_TYPE:
case LegalpadTransactionType::TYPE_PREAMBLE:
- case LegalpadTransactionType::TYPE_REQUIRE_SIGNATURE:
return $xaction->getNewValue();
+ case LegalpadTransactionType::TYPE_REQUIRE_SIGNATURE:
+ return (bool)$xaction->getNewValue();
}
}
@@ -92,7 +93,7 @@
$object->setPreamble($xaction->getNewValue());
break;
case LegalpadTransactionType::TYPE_REQUIRE_SIGNATURE:
- $object->setRequireSignature($xaction->getNewValue());
+ $object->setRequireSignature((int)$xaction->getNewValue());
break;
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 9, 7:53 PM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7391194
Default Alt Text
D11785.id28406.diff (1 KB)

Event Timeline