Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1512

Each "kDBBase::SetDefaultValues" call should respect "#NOW#" default value

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.2-B1
    • Component/s: Database
    • Labels:
      None
    • Change Log Group:
      Fixed
    • Change Log Message:
      The "kDBItem::Clear" method wasn't resetting current time fields (e.g. "CreatedOn").
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Plan:

      1. add "kDBBase::CurrentTimeFields" property, that will be an array
      2. when the "#NOW#" value is replaced (in the "kDBBase::SetDefaultValues" method) record affected field name in new property (see above)
      3. next time we replace field default value with timestamp either if it has "#NOW#" value or had it in past (according to above added property contents)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Gleb Sinkovskiy [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: