Page 1 of 1

apply metadata to all stores

Posted: Thu Jul 19, 2018 7:00 am
by Arno Voerman
according to the documentation, metadata is applied to the store.
metaData - An optional object containing meta data for the store. This object will be assigned to the store's metaData property after loading.
But if the store is the taskstore this is not applied. Code from AbstractManager.js
        if (metaData) {
            if (store.applyMetaData) {
                store.applyMetaData(metaData);
            } else {
                store.metaData  = metaData;
            }
        }
by changing this code into:
		if (metaData) {
			if (store.applyMetaData) {
				store.applyMetaData(metaData);
			}
			store.metaData = metaData;
		}
the CRUD-manager operates as expected.

Arno

Re: apply metadata to all stores

Posted: Thu Jul 19, 2018 9:13 am
by Maxim Gorkovsky
Hello.
I opened ticket for this isssue: https://app.assembla.com/spaces/bryntum/tickets/6515 Thank you for report!