[rt-users] assets: bulk updating a custom field value fails
Martin Wheldon
martin.wheldon at greenhills-it.co.uk
Wed Jan 11 10:06:19 EST 2017
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
Martin
On 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!
More information about the rt-users
mailing list