symbiote / silverstripe-advancedworkflow

A highly configurable step-based workflow module.
BSD 3-Clause "New" or "Revised" License
47 stars 71 forks source link

Unwanted icons visible in buttons and fix incorrect argument order #512

Closed satrun77 closed 9 months ago

satrun77 commented 9 months ago

Description

The workflow interface looks like the following

Screenshot 2024-01-25 at 12 13 13 PM

Similar issue in https://github.com/silverstripe/silverstripe-admin/pull/1581

When applying workflow to a page. There is an error related to an incorrect argument for insertBefore

[Emergency] Uncaught TypeError: SilverStripe\Forms\FieldList::insertBefore(): Argument #2 ($item) must be of type SilverStripe\Forms\FormField, string given, called in /Users/mo/Sites/cms/vendor/silverstripe/framework/src/Forms/CompositeField.php on line 349

Manual testing steps

Pull request checklist

GuySartorelli commented 9 months ago

Also please make sure there is an issue for each pull request (that was in the PR template, looks like you removed that section for some reason in your PR description). We track issues rather than pull requests, so it will be easier to make sure this contribution doesn't get lost and forgotten if we have an issue for it.

satrun77 commented 9 months ago

Also please make sure there is an issue for each pull request (that was in the PR template, looks like you removed that section for some reason in your PR description). We track issues rather than pull requests, so it will be easier to make sure this contribution doesn't get lost and forgotten if we have an issue for it.

It was accidental 🤣 thanks I will fix that

satrun77 commented 9 months ago

@GuySartorelli PR https://github.com/symbiote/silverstripe-advancedworkflow/pull/513

I will close this one and create another PR for https://github.com/symbiote/silverstripe-advancedworkflow/issues/515