AssetTracker Custom Field Select Date problem

I am having a problem with a custom field using a ‘Select Date’ type.
Creation is no problem nor is entering data.

If you open an asset and select ‘Fields’ then all the values previously
entered are correctly reloaded from the db.

The Date field though is empty and it shows the value in brackets beside the
date field.

If you then update any other field ie. ‘Change Comment’ and then ‘Save
Changes’ the value of the date field is removed as below.

Results

2013-05-27 is no longer a value for custom field Purchase Date

This can easily remove data from the database.

Can someone confirm this please?

Hi Gary,
for issues with AT you should consult : GitHub - AssetTracker/rt-extension-assettracker: Asset Tracker is an extension for Request Tracker. It integrates asset tracking with your favorite ticketing system. and open an issue there.

TorstenVon: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] Im Auftrag von Gary McRae
Gesendet: Montag, 27. Mai 2013 01:35
An: rt-users@lists.bestpractical.com
Betreff: [rt-users] AssetTracker Custom Field Select Date problem

I am having a problem with a custom field using a ‘Select Date’ type. Creation is no problem nor is entering data.
If you open an asset and select ‘Fields’ then all the values previously entered are correctly reloaded from the db.
The Date field though is empty and it shows the value in brackets beside the date field.
If you then update any other field ie. ‘Change Comment’ and then ‘Save Changes’ the value of the date field is removed as below.
Results
2013-05-27 is no longer a value for custom field Purchase Date

This can easily remove data from the database.
Can someone confirm this please?

K?hne + Nagel (AG & Co.) KG, Gesch?ftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius, Reiner Heiken, Holger Ketz (Stellv.), Jan-Hendrik K?stergarten (Stellv.), Bruno Mang, Christian Marnett?, Jens Wollesen, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Pers?nlich haftende Gesellschaft: K?hne & Nagel A.G., Sitz: Contern/Luxemburg Gesch?ftsf?hrender Verwaltungsrat: Karl Gernandt

Gary,

There is also a google group called at-users that has been very
helpful for us, but right now I can’t get into it to point you to the
solution. Did they kill google groups as I had heard threatened?

But we had the same problem and I nice guy named Rolf provided a
solution. AFAIK he is the most active supporter of the AssetTracker
module. He has his own fork on github but there was some talk on
at-users@googlegroups.com of folding his fixes into the main branch.

Anyway, here is the fix he provided:

Thanks Don.
Problem solved with your help.

Kind regards,
GaryOn 29/05/2013, at 10:32 AM, Don Gourley donald.gourley@gmail.com wrote:

Gary,

There is also a google group called at-users that has been very
helpful for us, but right now I can’t get into it to point you to the
solution. Did they kill google groups as I had heard threatened?

But we had the same problem and I nice guy named Rolf provided a
solution. AFAIK he is the most active supporter of the AssetTracker
module. He has his own fork on github but there was some talk on
at-users@googlegroups.com of folding his fixes into the main branch.

Anyway, here is the fix he provided:

Rolf Grossmann rolf.grossmann@gmail.comTue, Apr 2, 2013 at 2:29 PM
Reply-To: at-users@googlegroups.com
To: at-users@googlegroups.com
Hi Stewart,

On 29.03.2013 16:20, studogg1@gmail.com wrote:

We created an Asset Tracker custom field for a calendar showing an
inventory date. When we create a date entry it works fine. But if we
modify the asset, the date field gets cleared and the date is gone. We
need to re-enter the original date (which is a pain) or we have to
change the field to a standard text field. Changing to a standard field
will cause problems with human error and searching.

Is there a way to ensure the date field doesn’t get cleared?

I’ve found the cause (code duplicated from rt) and fixed this problem in
my fork of asset tracker. See
Copy a fix from RT that date custom fields are not cleared when saving. · rg1/rt-extension-assettracker@1b2cb79 · GitHub

A proper fix should probably remove all that duplicated code entirely :confused:

Best regards, Rolf.


Date: Tue, 28 May 2013 05:56:45 +0000
From: “Brumm, Torsten / Kuehne + Nagel / Ham GI-ID”
torsten.brumm@Kuehne-Nagel.com
To: “gary.m@bitek.com.au” gary.m@bitek.com.au,
rt-users@lists.bestpractical.comrt-users@lists.bestpractical.com
Subject: Re: [rt-users] AssetTracker Custom Field Select Date problem
Message-ID:
524815224EA2F649982D6A7BCD53BDFE2158F87B@DCEEXMBX04.ger.win.int.kn
Content-Type: text/plain; charset=“us-ascii”

Hi Gary,
for issues with AT you should consult : GitHub - AssetTracker/rt-extension-assettracker: Asset Tracker is an extension for Request Tracker. It integrates asset tracking with your favorite ticketing system. and open an issue there.

Torsten

Von: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] Im Auftrag von Gary McRae
Gesendet: Montag, 27. Mai 2013 01:35
An: rt-users@lists.bestpractical.com
Betreff: [rt-users] AssetTracker Custom Field Select Date problem

I am having a problem with a custom field using a ‘Select Date’ type. Creation is no problem nor is entering data.
If you open an asset and select ‘Fields’ then all the values previously entered are correctly reloaded from the db.
The Date field though is empty and it shows the value in brackets beside the date field.
If you then update any other field ie. ‘Change Comment’ and then ‘Save Changes’ the value of the date field is removed as below.
Results
2013-05-27 is no longer a value for custom field Purchase Date

This can easily remove data from the database.
Can someone confirm this please?

K?hne + Nagel (AG & Co.) KG, Gesch?ftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius, Reiner Heiken, Holger Ketz (Stellv.), Jan-Hendrik K?stergarten (Stellv.), Bruno Mang, Christian Marnett?, Jens Wollesen, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Pers?nlich haftende Gesellschaft: K?hne & Nagel A.G., Sitz: Contern/Luxemburg Gesch?ftsf?hrender Verwaltungsrat: Karl Gernandt


RT Training in Seattle, June 19-20: http://bestpractical.com/training