Closed benjaminc closed 2 years ago
Hi,
we've fixed that for the next release (and we will push it to our nightly feed).
But it would be really good to have a chat with you about how it might work for you.
we are in the middle of looking at how to make the whole menu area more customizable, so we can add menus to all items (like doctypes, data types, and forms) - so we are tring to make more of the dialog logic generic.
I think we could make the whole process eaiser for you along the way (i suspect there will be other blockage in the dialogs).
if you want to drop me an email kevin@jumoo.co.uk we could have a chat ?
Hi,
We are just cleaning up old, issues, i hope this was something that has either been fixed for you or not happened again. if this is still an issue, then feel free to drop in a comment and we will look at re-opening the issue.
♾️
Describe the bug I have custom data in my database, that is represented in custom sections in the back-office. I'm trying to add uSync Publisher right-click menus to those sections to transfer my data between servers. When I call
uSyncPublishDialogManager.openSyncDialog
with theoptions.contentType
set to my custom type, I get an error about the object returned by thegetItemById
method not have athen
method on it.Version (please complete the following information):
Cause The problem lies in the
App_Plugins/uSyncPublisher/components/uSyncPublishingActionComponent.js
script in thegetItemById
method. If the content type is not one of the known types, it just returns the item passed in. The problem is that all the other return statements are returning aPromise
object, and the caller expects aPromise
object to be returned. I believe the fallback return statement should be changed fromreturn item;
toreturn new Promise(resolve => resolve(item));