Bug 13735: Update PrepareItemrecordDisplay to use maxlength
authorKatrin Fischer <katrin.fischer.83@web.de>
Wed, 6 Feb 2019 02:02:11 +0000 (02:02 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 22 Mar 2019 19:10:47 +0000 (19:10 +0000)
commit0429aadc217f05a98bbaa51f955b835ac552fd7a
tree4239b2a44f0c2b2c9a9e7ce17ce33b74f742b661
parent5334e0f32a8b93c407c2bfc931397a0ae70b8d64
Bug 13735: Update PrepareItemrecordDisplay to use maxlength

The PrepareItemrecordDisplay method used to generate the item
display on receiving serials was using a hardcoded maxlength
of 255 on input fields. This patch updates it to use the
maxlength defined in the frameworks instead as the normal
item form does.

To test:
- Create or reuse an existing subscription
- Make note of the framework the record uses
- Add an item on receive
- Check the maxlength on the various fields is set to 255
  (check source code or use developer tools)
- You can also verify that by adding a long note to
  one of the note fields
- Apply patch
- Repeat tests, the maxlength should now be 9999
- In your framework settings, change the length of one
  of the subfields to another value
- Verify that the item form reflects the change

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Items.pm