Sitecore / Items-in-Resources

1 stars 2 forks source link

Approve workflow state of item is broken #10

Open AlenPelin opened 7 years ago

AlenPelin commented 7 years ago

In Alpha-1.1 approve workflow state of item is broken.

Scenario: 1. Create Home/Test item 2. Click Approve in Workflow section

Actual Result: Unhandled exception is thrown.

Expected Result: Item is approved.

Exception:

Exception: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: owner
Source: Sitecore.Kernel
   at Sitecore.Data.Items.TemplateFieldItem.op_Implicit(Item item)
   at Sitecore.Data.Validators.DefaultValidatorManager.BuildFieldValidators(ValidatorsMode mode, ValidatorCollection result, IEnumerable`1 fields, Database database)
   at Sitecore.Data.Validators.DefaultValidatorManager.BuildValidators(ValidatorsMode mode, String key, ICollection`1 fields, Database database, SafeDictionary`2 controls)
   at Sitecore.Data.Validators.ValidatorManager.BuildValidators(ValidatorsMode mode, String key, ICollection`1 fields, Database database, SafeDictionary`2 controls)
   at Sitecore.Shell.Applications.ContentManager.FieldEditorForm.BuildValidators(ValidatorsMode mode)
   at Sitecore.Shell.Applications.ContentManager.FieldEditorForm.UpdateValidatorBar(Border parent)
   at Sitecore.Shell.Applications.ContentManager.FieldEditorForm.OnPreRendered(EventArgs e)
   at Sitecore.sitecore.shell.Applications.Workbox.CommentEditor.OnPreRendered(EventArgs e)
AlenPelin commented 7 years ago

Still an issue in Alpha-1.2, but workaround is simple: enable Suppress comments for all Workflow Commands.