Deleting all tags - expected behaviour?

Dan Morphis dan at milkcarton.com
Wed Oct 18 13:00:20 EDT 2017


Try adding a commit() after the delete.

declare(“Tags.*”, null, {value: false});
commit();
declare(“Tags.some_new_tag”, null, {value: true});

On Tue, Oct 17, 2017 at 6:22 PM, David White <david.white at trustpower.co.nz>
wrote:

>
> Hi there,
>          Can anyone please confirm the expected behaviour here.
>
> I have a provision where I’m trying to delete all tags then apply a tag.
>
> I would expect the following to work (but it doesn’t)
>
> declare(“Tags.*”, null, {value: false});
> declare(“Tags.some_new_tag”, null, {value: true})
>
> It removes all tags, but doesn’t apply the new tag. If I do this manually
> and specify each tag to remove, then add a tag - it works.
>
> Cheers,
>
> David White
>
>
>
> ------------------------------------------------------------
> ------------------------
> The contents of this email and any attachments are confidential and may be
> privileged.  If you are not the intended recipient, you may not use, copy
> or disclose this email or its attachments.  Please notify the sender
> immediately by e-mail if you have received this e-mail in error and delete
> both emails from your system.  It is your responsibility to check this
> email and any attachments for viruses or other harmful code before opening
> or sending on.  Trustpower Limited and its subsidiaries (collectively,
> Trustpower) accepts no responsibility for any such virus or any effects of
> a virus on your systems or data.  Trustpower does not endorse anything in
> this email that is not related to its official business.
>
> Please think of the environment before printing this email.
>
> ------------------------------------------------------------
> ------------------------
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20171018/0737450c/attachment.html>


More information about the Users mailing list