-
Notifications
You must be signed in to change notification settings - Fork 5
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
add type cast #3
Conversation
Thanks for the PR! Could you explain the following change? To be honest, I'm not sure myself what it was for initially. `
Also, the CSS classes added, that's for the Bootstrap theme, right? (we've been debating whether to add Bootstrap classes in CiviCRM more generally, as the main officially supported theme) |
I apologize. I only meant to put the change to pcpteams.inc.php where the variable is type cast to a string. In 4.6, The other changes were to a my project specifically. I did not mean to include them in the pull request. I am working through the CiviCRM templates and adding Bootstrap 3 classes as I need them: https://github.com/blackbricksoftware/civicrm-core |
@mlutfy Can confirm @davidjosephhayes bug, on civicrm 4.6.4 cannot edit pcp individual pages without the above type cast, causes fatal error.
|
@eruraindil Thanks for the backtrace. Did you encounter this issue when working with Event PCPs or Contributions? I tested contributions and it seems OK. The component page type should never be null, it should be either "contribution" or "event". Otherwise I worry it might cause issues down the road. (sorry for the very late response) |
Nevermind my last comment. I see the bug in Contribution pages as well. I'm a bit surprised that allowing a null/empty works. Can you test 87168de ? |
$component_page_type was null causing a fatal error on a fresh install of 4.6.2