Cannot edit invitation enrollment flow attributes without a COU

XMLWordPrintable

      You cannot edit the enrollment attributes for an invitation enrollment flow for a CO with no COUs defined.

      To reproduce, start with a new CO that does not have any COUs.

      Then restore the default enrollment templates and duplicate the Invitation Template.

      Edit the duplicate and save it. Then attempt to edit the enrollment attributes for the enrollment flow. You will see an "Internal Error Has Occurred".

      The logs will have

      2023-04-12 09:35:46 Error: [TypeError] array_filter(): Argument #1 ($array) must be of type array, null given
      Request URL: /registry/co_enrollment_attributes/index/coef:17
      Stack Trace:
      #0 /srv/comanage-registry/app/View/CoEnrollmentAttributes/index.ctp(111): array_filter()
      #1 /srv/comanage-registry/lib/Cake/View/View.php(971): include('...')
      #2 /srv/comanage-registry/lib/Cake/View/View.php(933): View->_evaluate()
      #3 /srv/comanage-registry/lib/Cake/View/View.php(473): View->_render()
      #4 /srv/comanage-registry/lib/Cake/Controller/Controller.php(968): View->render()
      #5 /srv/comanage-registry/lib/Cake/Routing/Dispatcher.php(200): Controller->render()
      #6 /srv/comanage-registry/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
      #7 /srv/comanage-registry/app/webroot/index.php(96): Dispatcher->dispatch()
      #8 {main} 

            Assignee:
            Ioannis Eythymios Igoumenos
            Reporter:
            Scott Koranda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: