Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1226

To Do sample app - validate() fails to prevent invalid (empty) items from being added

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Alloy 1.7.1
    • Component/s: Samples & Templates
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      2015 Sprint 15 Tooling

      Description

      The model definition in the test/apps/models/todo app includes a validation check. If a model doesn't pass this check, it should not be added to the database. However, empty items are being added.

      Per the Backbone docs, you override the validate function with your own code. If a model fails validation, you return any string and save() will be prevented.

        Attachments

          Activity

            People

            • Assignee:
              fmiao Feon Sua Xin Miao
              Reporter:
              tstatler Tim Statler
              Reviewer:
              Praveen Innamuri (Inactive)
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration