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

Setting form - function extraction #12744

Merged
merged 2 commits into from
Aug 30, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Extract a function for re-usability

Before

code less maintainable

After

code more maintainable

Technical Details

This is a subset of #12731 intended to keep the function extraction as clean as possible

Comments

@civibot
Copy link

civibot bot commented Aug 29, 2018

(Standard links)

$this->addRule('max_attachments', ts('Value should be a positive number'), 'positiveInteger');
}
if ($setting == 'maxFileSize') {
//temp hack
Copy link
Member

Choose a reason for hiding this comment

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

Not so temp :/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lol - it has survived once again

@eileenmcnaughton
Copy link
Contributor Author

test this please

1 similar comment
@eileenmcnaughton
Copy link
Contributor Author

test this please

@mlutfy
Copy link
Member

mlutfy commented Aug 30, 2018

jenkins, test this please

@seamuslee001
Copy link
Contributor

merging as per the tag

@seamuslee001 seamuslee001 merged commit 5a1e0c3 into civicrm:master Aug 30, 2018
@seamuslee001 seamuslee001 deleted the setting_form3 branch August 30, 2018 21:29
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.

5 participants