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

Replace deprecated code #80

Open
1 task
jensschuppe opened this issue Jun 8, 2021 · 3 comments
Open
1 task

Replace deprecated code #80

jensschuppe opened this issue Jun 8, 2021 · 3 comments

Comments

@jensschuppe
Copy link
Collaborator

jensschuppe commented Jun 8, 2021

  • User deprecated function: Attributes passed to CRM_Core_Form::add() are not an array. in CRM_Core_Error::deprecatedWarning() (line 1053 of .../sites/all/modules/civicrm/CRM/Core/Error.php). on civicrm/import/contact/xcm - CRM_Xcm_Form_Import::buildQuickForm expects array #110
@jensschuppe jensschuppe added this to the 1.9 milestone Jun 8, 2021
@bjendres bjendres removed this from the 1.9 milestone Mar 16, 2023
@jensschuppe jensschuppe added this to the 1.11 milestone Sep 14, 2023
@bjendres bjendres modified the milestones: 1.11, 1.12 Sep 21, 2023
@bjendres bjendres modified the milestones: 1.12, 1.13 Oct 11, 2023
@jensschuppe jensschuppe modified the milestones: 1.13, 1.14 Jun 25, 2024
@bjendres
Copy link
Member

@jaapjansma is this still happening? You're currently using this more the we do...

@jensschuppe
Copy link
Collaborator Author

At least here this is still an issue:

$this->add(
'File',
'uploadFile',
ts('Import Data File'),
'size=30 maxlength=255',
TRUE
);

@bjendres
Copy link
Member

bjendres commented Jun 27, 2024

Should be easy enough - occurrences like these

'size=30 maxlength=255'

needs to be replaced by an appropriate array noation.

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

No branches or pull requests

2 participants