Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/core#1982 fix creator param handling #18282

Closed
wants to merge 1 commit into from

Conversation

lcdservices
Copy link
Contributor

Overview

Case open: doesn't respect case roles "creator" param if unset

to replicate:

  1. create a new casetype
  2. in the list of case roles, uncheck the "assign to creator" checkbox for the default case coordinator role
  3. create a new case on a contact record

Before

case coordinator role is created and assigned to the logged in user

After

no case coordinator role created

Technical Details

simple fix to the condition that determines if the relationship should be created.

@civibot
Copy link

civibot bot commented Aug 28, 2020

(Standard links)

@civibot civibot bot added the master label Aug 28, 2020
@demeritcowboy
Copy link
Contributor

Looks like I broke it. I see simplexml returns the property as an array if you don't cast it or force conversion.

This would have been 5.26 so should this go against 5.29 as a regression?

Also line 108 below should maybe also get !empty or be cast to (bool).

@eileenmcnaughton
Copy link
Contributor

Adding has-test as @demeritcowboy has written a test. Also looks like this should be against 5.29 - am I right in thinking this should be merged as soon as we have a passing PR against 5.29?

@demeritcowboy
Copy link
Contributor

Made 5.29 version at #18301 and also updated the other line that needs wrapping.

@eileenmcnaughton
Copy link
Contributor

Closing as merged via #18301

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants