Commit 3bb6ec24 authored by lobo's avatar lobo
Browse files

change some class names to match Civi v4.4

parent 45aac0cf
......@@ -125,8 +125,20 @@ ORDER BY pf_label, pfv.price_field_id, pfv.weight
* @return boolean true is it is quickconfig else false
*/
static function checkForQuickConfigPriceSet($priceSetId) {
if (CRM_Core_DAO::getFieldValue('CRM_Price_DAO_Set', $priceSetId, 'is_quick_config')) {
return true;
if (
version_compare(
CRM_Utils_System::version(),
'4.4'
) >= 0
) {
if (CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $priceSetId, 'is_quick_config')) {
return true;
}
}
else {
if (CRM_Core_DAO::getFieldValue('CRM_Price_DAO_Set', $priceSetId, 'is_quick_config')) {
return true;
}
}
return false;
......
<?xml version="1.0" encoding="utf-8"?>
<extension key="org.civicrm.module.cividiscount" type="module">
<downloadUrl>
https://github.com/dlobo/org.civicrm.module.cividiscount/zipball/v2.3
https://github.com/dlobo/org.civicrm.module.cividiscount/zipball/v2.4
</downloadUrl>
<file>cividiscount</file>
<name>CiviDiscount Module Extension</name>
<description>This module requires PHP v5.3+ and Civi v4.3.7+</description>
<description>This module requires PHP v5.3+ and Civi v4.4+</description>
<urls>
<url desc="Main Extension Page">
http://civicrm.org/extension/cividiscount-extension
......@@ -21,11 +21,11 @@ https://github.com/dlobo/org.civicrm.module.cividiscount/
<author>CiviCRM LLC</author>
<email>info@civicrm.org</email>
</maintainer>
<releaseDate>2013-09-21</releaseDate>
<version>2.3</version>
<releaseDate>2013-11-05</releaseDate>
<version>2.4</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.3</ver>
<ver>4.4</ver>
</compatibility>
<comments>
For support, please contact the team on the forums. (http://forum.civicrm.org)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment