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

Test setting/getting a multivalue customfield with date+time #22726

Closed
wants to merge 1 commit into from

Conversation

mattwire
Copy link
Contributor

@mattwire mattwire commented Feb 7, 2022

Overview

@colemanw We should be able to set a multivalue customfield date field with date+time but it doesn't seem to work? See test.

Before

After

Technical Details

Comments

@civibot
Copy link

civibot bot commented Feb 7, 2022

(Standard links)

@civibot civibot bot added the master label Feb 7, 2022
@mattwire mattwire force-pushed the customvaluefailingtest branch 2 times, most recently from 12d9709 to 9b2f81b Compare February 7, 2022 23:33
Comment on lines +94 to +96
->addValue('data_type:name', 'Date')
->addValue('html_type:name', 'Select Date')
->addValue('date_format:name', 'yy-mm-dd (2009-12-31)')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a separate issue, but I looked at this code and suddenly realized that APIv4 thinks translatable labels are the same thing as machine names. Yikes! That's definitely wrong and these 3 lines should not work. I've put up #22730 which will fix the bug (and break this api call, it should be updated to not use the :name suffix anyway).

@colemanw
Copy link
Member

colemanw commented Feb 8, 2022

#22731 fixes the issue and hopefully doesn't cause any other test failures.

@colemanw colemanw closed this Feb 8, 2022
@mattwire
Copy link
Contributor Author

mattwire commented Feb 8, 2022

Thanks @colemanw

@mattwire mattwire deleted the customvaluefailingtest branch February 8, 2022 20:24
@colemanw
Copy link
Member

colemanw commented Feb 8, 2022

Amazingly, all tests passed! If you could leave a review on that PR @mattwire we can get it merged.

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

Successfully merging this pull request may close these issues.

2 participants