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)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 1 Apr 2019 15:45:19 +0000 (15:45 +0000)
commit87790299605e2d1fad5f781ebc7ff9b180294dbf
treef6a6f09fd0ced508f9bb33227758fdb4dac19234
parentde8cf34eb76d434b780032cb3bd812b5baff3444
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>
(cherry picked from commit 0429aadc217f05a98bbaa51f955b835ac552fd7a)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 1c267af1438d31a967593f942321d040cd26d34e)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Items.pm