Uploaded image for project: 'Poulpe'
  1. Poulpe
  2. POULPE-338

ZK error message is shown on attempt to create a Section with empty name

VotersWatchers
    XMLWordPrintable

    Details

      Description

      1. Go to JCommune-Forum Structure, press "Create a Section"
      2. DO NOT enter any information, press "Save"
      As a result, the following error message is shown:

      Validation failed for classes [org.jtalks.poulpe.model.entity.PoulpeSection] during persist time for groups [javax.validation.groups.Default, ]
      List of constraint violations:[
      ConstraintViolationImpl{interpolatedMessage='{section.name.emptiness_constraint_violation}', propertyPath=name, rootBeanClass=class org.jtalks.poulpe.model.entity.PoulpeSection, messageTemplate='{section.name.emptiness_constraint_violation}'}
      ]

      Expected Result: an error message "Name field may not be empty" is supposed to be shown (as, for example, it happens when trying to save a User group with empty name)

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  masha nisse Maria Agapchenko
                  Reporter:
                  masha nisse Maria Agapchenko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel