allcount / allcountjs

Rapid application development framework for Node.js
http://allcountjs.com
MIT License
402 stars 83 forks source link

Select doesn't update when enter 2nd time in the screen with self-reference #62

Open anderick opened 8 years ago

anderick commented 8 years ago
      WorkOrderStatus: {
        title: 'Status da Ordem de Serviço',
        fields: {
          name: Fields.text("Name"),
          previousStatus: Fields.fixedReference('Previous Status', 'Status')
        },
        referenceName: "name"
      }

To reproduce, use the entity above, go to list page, click in "+", create the "Status 1", confirm to save it (you'll be redirected to the list page again), click in the "+", you won't see the "Status 1" into the select. If you go to another page or refresh the browser, the item will be there.

paveltiunov commented 8 years ago

@anderick pretty interesting case. Thanks for filing it! Yep there's reference value cache in allcountjs-angular-base. Need to invalidate it on every Create, Update, Delete operation.