Commit 54439de9 authored by Manfred Kutas's avatar Manfred Kutas

ZP-748 Added max length checks for description and name in

SyncRightsManagementTemplate.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 808c722e
...@@ -36,9 +36,11 @@ class SyncRightsManagementTemplate extends SyncObject { ...@@ -36,9 +36,11 @@ class SyncRightsManagementTemplate extends SyncObject {
public function __construct() { public function __construct() {
$mapping = array ( $mapping = array (
SYNC_RIGHTSMANAGEMENT_TEMPLATEDESCRIPTION => array (self::STREAMER_VAR => "description"), SYNC_RIGHTSMANAGEMENT_TEMPLATEDESCRIPTION => array ( self::STREAMER_VAR => "description",
SYNC_RIGHTSMANAGEMENT_TEMPLATEID => array (self::STREAMER_VAR => "id"), self::STREAMER_CHECKS => array( self::STREAMER_CHECK_LENGTHMAX => 10240 )),
SYNC_RIGHTSMANAGEMENT_TEMPLATENAME => array (self::STREAMER_VAR => "name"), SYNC_RIGHTSMANAGEMENT_TEMPLATEID => array ( self::STREAMER_VAR => "id"),
SYNC_RIGHTSMANAGEMENT_TEMPLATENAME => array ( self::STREAMER_VAR => "name",
self::STREAMER_CHECKS => array( self::STREAMER_CHECK_LENGTHMAX => 256 )),
); );
parent::__construct($mapping); parent::__construct($mapping);
......
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