Assets: bulk updating a custom field value fails

Hello!

We are using rt4.4.1 with the now build-in Assets. When bulk-updating a
custom field value for 2 Assets the following Error is logged and the
update fails:

[27811] [Wed Jan 11 13:35:52 2017] [warning]: Use of uninitialized value
$1 in hash element at /opt/rt4/sbin/…/lib/RT/Interface/Web.pm line
3164. (/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:3164)
[27811] [Wed Jan 11 13:35:52 2017] [error]: Can’t call method "new"
without a package or object reference at
/opt/rt4/sbin/…/lib/RT/Interface/Web.pm line 3099.

Stack:
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:3099]
[/opt/rt4/share/html/Asset/Search/Bulk.html:183]
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:696]
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:375]

This only happens for custom fields. Bulk updating a ‘Basics’ Field
works as expected.

Is this due to
https://issues.bestpractical.com/Ticket/Display.html?id=15259 or someone
got a hint for me what we messed up here?

Thanks!
Michael Hoertnagl
Systemadministrator

Medizinische Universität Innsbruck
Abteilung IKT - Team Server & Storage

Tel: +43 (0)512 9003 71026
michael.hoertnagl@i-med.ac.at
https://www.i-med.ac.at/itservices/

Hi Michael,

Line 183 of /opt/rt4/share/html/Asset/Search/Bulk.html seems to be the
problem, if you comment it out
the bulk update works.
# push @tmp_res, ProcessObjectCustomFieldUpdates( Object => $asset,
ARGSRef => %ARGS );

I’m suspect that line 183 shouldn’t be here as the customfields are
updated at line line 185
push @tmp_res, ProcessRecordBulkCustomFields( RecordObj => $asset,
ARGSRef => %ARGS );

Best Regards

MartinOn 2017-01-11 14:11, Michael Hoertnagl wrote:

Hello!

We are using rt4.4.1 with the now build-in Assets. When bulk-updating a
custom field value for 2 Assets the following Error is logged and the
update fails:

[27811] [Wed Jan 11 13:35:52 2017] [warning]: Use of uninitialized
value
$1 in hash element at /opt/rt4/sbin/…/lib/RT/Interface/Web.pm line
3164. (/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:3164)
[27811] [Wed Jan 11 13:35:52 2017] [error]: Can’t call method "new"
without a package or object reference at
/opt/rt4/sbin/…/lib/RT/Interface/Web.pm line 3099.

Stack:
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:3099]
[/opt/rt4/share/html/Asset/Search/Bulk.html:183]
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:696]
[/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:375]

This only happens for custom fields. Bulk updating a ‘Basics’ Field
works as expected.

Is this due to
https://issues.bestpractical.com/Ticket/Display.html?id=15259 or
someone
got a hint for me what we messed up here?

Thanks!

1 Like

Hi MartinOn 2017-01-11 16:06, Martin Wheldon wrote:

Line 183 of /opt/rt4/share/html/Asset/Search/Bulk.html seems to be the
problem, if you comment it out the bulk update works.

Yes this fixes the issue for us. Thanks for your help.

Cheers,
Michael