Public bug reported:

When utilizing an Aiki Edit form, you may have certain fields that you
would like to be automatically populated with some information.

A key function in Aiki Add forms is the ability to use 'datetime' and to
have the datetime of the insert automatically recorded when the user
adds a new record.  If, however, you want to record, say, the
'last_edit',  ideally, you'd be able to use that same 'datetime'
function to update or record a new datetime, like so:

last_edit|SystemGOD:Date of Last Edit:datetime

If the above is included in an Aiki Add form, it works as expected.  If,
however, you create an Aiki Edit form & use the same code, the last_edit
fails to write the current datetime & instead zeros out the date.

Functions like "insertedby_userid" seem to work fine, so it may just be
an issue with the datetime function, specifically.

** Affects: aikiframework
     Importance: High
         Status: New

-- 
You received this bug notification because you are a member of Aiki
Framework Admins, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/949487

Title:
  Aiki Form functions not working on edit forms

Status in Aiki Framework:
  New

Bug description:
  When utilizing an Aiki Edit form, you may have certain fields that you
  would like to be automatically populated with some information.

  A key function in Aiki Add forms is the ability to use 'datetime' and
  to have the datetime of the insert automatically recorded when the
  user adds a new record.  If, however, you want to record, say, the
  'last_edit',  ideally, you'd be able to use that same 'datetime'
  function to update or record a new datetime, like so:

  last_edit|SystemGOD:Date of Last Edit:datetime

  If the above is included in an Aiki Add form, it works as expected.
  If, however, you create an Aiki Edit form & use the same code, the
  last_edit fails to write the current datetime & instead zeros out the
  date.

  Functions like "insertedby_userid" seem to work fine, so it may just
  be an issue with the datetime function, specifically.

To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/949487/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework.admins
Post to     : aikiframework.admins@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework.admins
More help   : https://help.launchpad.net/ListHelp

Reply via email to