Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/redCORE
Submodule redCORE updated 55 files
+2 −2 build/gulp-redcore/media/redcore.js
+2 −3 build/gulpfile.js
+36 −73 build/media/libraries/redcore/media/redcore/css/component.bs3.css
+212 −209 build/media/libraries/redcore/media/redcore/css/component.css
+7 −1 build/media/libraries/redcore/media/redcore/less/bootstrap/navbar.less
+3 −0 build/media/libraries/redcore/media/redcore/less/component.less
+1 −0 build/media/libraries/redcore/media/redcore/less/navbar.less
+8 −0 extensions/components/com_redcore/admin/config.xml
+2 −0 extensions/components/com_redcore/admin/language/en-GB/en-GB.com_redcore.sys.ini
+1 −1 extensions/components/com_redcore/admin/models/config.php
+12 −11 extensions/components/com_redcore/admin/sql/install/mysql/install.sql
+2 −2 extensions/components/com_redcore/admin/sql/updates/mysql/1.4.7.sql
+4 −4 extensions/components/com_redcore/admin/sql/updates/mysql/1.5.4.sql
+4 −4 extensions/components/com_redcore/admin/sql/updates/mysql/1.8.3.sql
+1 −1 extensions/components/com_redcore/admin/sql/updates/mysql/1.9.0.sql
+2 −0 extensions/components/com_redcore/admin/sql/updates/mysql/2.2.1-beta2.sql
+11 −0 extensions/components/com_redcore/admin/sql/updates/mysql/2.2.4.sql
+1 −9 extensions/components/com_redcore/admin/views/config/tmpl/edit.php
+1 −0 extensions/components/com_redcore/admin/views/oauth_client/tmpl/default.php
+1 −1 extensions/components/com_redcore/admin/views/oauth_clients/tmpl/default.php
+4 −1 extensions/components/com_redcore/admin/views/oauth_clients/view.html.php
+1 −0 extensions/components/com_redcore/admin/views/payment_configuration/tmpl/default.php
+1 −1 extensions/components/com_redcore/admin/views/payment_configurations/tmpl/default.php
+4 −1 extensions/components/com_redcore/admin/views/payment_configurations/view.html.php
+1 −1 extensions/components/com_redcore/admin/views/payments/tmpl/default.php
+4 −1 extensions/components/com_redcore/admin/views/payments/view.html.php
+1 −1 extensions/components/com_redcore/admin/views/translation_tables/tmpl/default.php
+4 −1 extensions/components/com_redcore/admin/views/translation_tables/view.html.php
+1 −1 extensions/components/com_redcore/admin/views/translations/tmpl/default.php
+2 −1 extensions/components/com_redcore/admin/views/webservices/tmpl/default.php
+4 −1 extensions/components/com_redcore/admin/views/webservices/view.html.php
+16 −18 extensions/install.php
+4 −24 extensions/libraries/redcore/api/api.php
+31 −9 extensions/libraries/redcore/api/oauth2/oauth2.php
+0 −6 extensions/libraries/redcore/bootstrap.php
+12 −20 extensions/libraries/redcore/controller/form.php
+1 −1 extensions/libraries/redcore/database/driver.php
+12 −9 extensions/libraries/redcore/factory/factory.php
+4 −1 extensions/libraries/redcore/form/fields/rrules.php
+87 −176 extensions/libraries/redcore/form/form.php
+64 −0 extensions/libraries/redcore/helper/dispatcher.php
+2 −3 extensions/libraries/redcore/html/html.php
+1 −1 extensions/libraries/redcore/html/rgrid.php
+12 −0 extensions/libraries/redcore/layouts/redcore/api/oauth2/profile.php
+5 −1 extensions/libraries/redcore/layouts/toolbar/button/modal.php
+5 −1 extensions/libraries/redcore/layouts/toolbar/button/standard.php
+1 −1 extensions/libraries/redcore/loader/loader.php
+7 −2 extensions/libraries/redcore/media/redcore/css/component.bs3.min.css
+1 −1 extensions/libraries/redcore/media/redcore/css/component.min.css
+1 −1 extensions/libraries/redcore/media/redcore/lib/bootstrap/css/bootstrap.min.css
+1 −1 extensions/libraries/redcore/media/redcore/lib/bootstrap3/css/bootstrap.min.css
+2 −2 extensions/libraries/redcore/redcore.xml
+0 −1 extensions/plugins/system/mvcoverride
+4 −2 extensions/plugins/system/redcore/redcore.php
+4 −5 extensions/redcore.xml
10 changes: 6 additions & 4 deletions component/admin/controllers/field.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* @license GNU General Public License version 2 or later, see LICENSE.
*/

use Joomla\Utilities\ArrayHelper;

defined('_JEXEC') or die;

/**
Expand Down Expand Up @@ -48,18 +50,18 @@ public function saveOption()
$app = JFactory::getApplication();

$cid = $app->input->get('option-id', array(0), 'array');
JArrayHelper::toInteger($cid);
ArrayHelper::toInteger($cid);

$values = $app->input->get('option-value', array(0), 'array');
JArrayHelper::toString($values);
ArrayHelper::toString($values);

$labels = $app->input->get('option-label', array(0), 'array');
JArrayHelper::toString($labels);
ArrayHelper::toString($labels);

$prices = $app->input->get('option-price', array(0), 'array');

$sku = $app->input->get('option-sku', array(0), 'array');
JArrayHelper::toString($sku);
ArrayHelper::toString($sku);

$fieldId = $app->input->getInt('id', 0);

Expand Down
5 changes: 3 additions & 2 deletions component/admin/controllers/fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* @license GNU General Public License version 2 or later, see LICENSE.
*/

use Joomla\Utilities\ArrayHelper;

defined('_JEXEC') or die;

/**
Expand Down Expand Up @@ -41,8 +43,7 @@ public function copy()
else
{
// Make sure the item ids are integers
jimport('joomla.utilities.arrayhelper');
JArrayHelper::toInteger($cid);
ArrayHelper::toInteger($cid);

// Remove the items.
if ($model->copy($cid))
Expand Down
5 changes: 3 additions & 2 deletions component/admin/controllers/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* @license GNU General Public License version 2 or later, see LICENSE.
*/

use Joomla\Utilities\ArrayHelper;

defined('_JEXEC') or die;

/**
Expand Down Expand Up @@ -41,8 +43,7 @@ public function copy()
else
{
// Make sure the item ids are integers
jimport('joomla.utilities.arrayhelper');
JArrayHelper::toInteger($cid);
ArrayHelper::toInteger($cid);

// Copy the items.
if ($model->copy($cid))
Expand Down
5 changes: 3 additions & 2 deletions component/admin/controllers/sections.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* @license GNU General Public License version 2 or later, see LICENSE.
*/

use Joomla\Utilities\ArrayHelper;

defined('_JEXEC') or die;

/**
Expand Down Expand Up @@ -41,8 +43,7 @@ public function copy()
else
{
// Make sure the item ids are integers
jimport('joomla.utilities.arrayhelper');
JArrayHelper::toInteger($cid);
ArrayHelper::toInteger($cid);

// Remove the items.
if ($model->copy($cid))
Expand Down
9 changes: 5 additions & 4 deletions component/admin/controllers/submitters.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* @license GNU General Public License version 2 or later, see LICENSE.
*/

use Joomla\Utilities\ArrayHelper;

defined('_JEXEC') or die;

/**
Expand Down Expand Up @@ -52,7 +54,7 @@ public function confirm()
$this->setMessage(JText::plural($this->text_prefix . '_N_SUBMITTERS_CONFIRMED', count($cid)));

JPluginHelper::importPlugin('redform');
$dispatcher = JDispatcher::getInstance();
$dispatcher = RFactory::getDispatcher();
$dispatcher->trigger('onConfirm', array('admin', &$cid));
}
else
Expand Down Expand Up @@ -85,7 +87,7 @@ public function unconfirm()
$this->setMessage(JText::plural($this->text_prefix . '_N_SUBMITTERS_UNCONFIRMED', count($cid)));

JPluginHelper::importPlugin('redform');
$dispatcher = JDispatcher::getInstance();
$dispatcher = RFactory::getDispatcher();
$dispatcher->trigger('onUnconfirm', array('admin', &$cid));
}
else
Expand Down Expand Up @@ -167,8 +169,7 @@ public function delete()
else
{
// Make sure the item ids are integers
jimport('joomla.utilities.arrayhelper');
JArrayHelper::toInteger($cid);
ArrayHelper::toInteger($cid);

$force = $this->getTask() == 'forcedelete';

Expand Down
6 changes: 4 additions & 2 deletions component/admin/controllers/values.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* @license GNU General Public License version 2 or later, see LICENSE.
*/

use Joomla\Utilities\ArrayHelper;

defined('_JEXEC') or die();

/**
Expand All @@ -31,8 +33,8 @@ public function saveOrderAjax()
$pks = array_slice($pks, 0, -1);

// Sanitize the input
JArrayHelper::toInteger($pks);
JArrayHelper::toInteger($order);
ArrayHelper::toInteger($pks);
ArrayHelper::toInteger($order);

// Get the model
$model = $this->getModel();
Expand Down
5 changes: 4 additions & 1 deletion component/admin/helpers/acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ public static function getActions($section = 'component', $assetName = 'com_redf
{
$user = JFactory::getUser();
$result = new JObject;
$actions = JAccess::getActions('com_redform', $section);
$actions = JAccess::getActionsFromFile(
JPATH_ADMINISTRATOR . '/components/com_redform/access.xml',
"/access/section[@name='" . $section . "']/"
);

foreach ($actions as $action)
{
Expand Down
2 changes: 1 addition & 1 deletion component/admin/models/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private function AddFormTable($formid)
$q .= ") COMMENT = " . $db->Quote('redFORMS Form ' . $formid);
$db->setQuery($q);

if (!$db->query())
if (!$db->execute())
{
throw new Exception($db->getError());
}
Expand Down
2 changes: 1 addition & 1 deletion component/admin/models/forms/field.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
label="COM_REDFORM_FORMS_XML_FIELD_TYPE"
description="COM_REDFORM_FORMS_XML_FIELD_TYPE_DESC"
required="true"
onchange="submitform('field.setType');"
onchange="Joomla.submitform('field.setType');"
/>
<field
name="tooltip"
Expand Down
50 changes: 25 additions & 25 deletions component/admin/sql/install.mysql.utf8.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ CREATE TABLE IF NOT EXISTS `#__rwf_billinginfo` (
`company` varchar(150) NOT NULL DEFAULT '',
`iscompany` tinyint(1) NOT NULL DEFAULT '0',
`vatnumber` varchar(150) NOT NULL DEFAULT '',
`address` text NOT NULL DEFAULT '',
`address` text,
`city` varchar(150) NOT NULL DEFAULT '',
`zipcode` varchar(150) NOT NULL DEFAULT '',
`phone` varchar(150) NOT NULL DEFAULT '',
`email` varchar(150) NOT NULL DEFAULT '',
`country` varchar(3) NOT NULL DEFAULT '',
`params` text NOT NULL DEFAULT '',
`params` text,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `cart_id` (`cart_id`)
Expand All @@ -25,12 +25,12 @@ CREATE TABLE IF NOT EXISTS `#__rwf_fields` (
`field` varchar(255) NOT NULL,
`field_header` varchar(255) NOT NULL default '',
`fieldtype` varchar(30) NOT NULL default 'textfield',
`checked_out` int(11) NOT NULL default '0',
`checked_out` int(11) NULL,
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`redmember_field` varchar(20) NOT NULL DEFAULT '',
`default` varchar(255) NOT NULL DEFAULT '',
`tooltip` varchar(255) NOT NULL DEFAULT '',
`params` text NOT NULL DEFAULT '',
`params` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Fields for redFORM';

Expand All @@ -40,41 +40,41 @@ CREATE TABLE IF NOT EXISTS `#__rwf_forms` (
`startdate` datetime NOT NULL default '0000-00-00 00:00:00',
`enddate` datetime NOT NULL default '0000-00-00 00:00:00',
`published` int(1) NOT NULL default '0',
`checked_out` int(11) NOT NULL default '0',
`checked_out` int(11) NULL,
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`submissionsubject` varchar(255) NOT NULL default '',
`submissionbody` text NOT NULL default '',
`submissionbody` text,
`showname` int(1) NOT NULL default '0',
`classname` varchar(45) NOT NULL default '',
`contactpersoninform` tinyint(1) NOT NULL default '0',
`contactpersonemail` varchar(255) NOT NULL default '',
`admin_notification_email_mode` tinyint(2) NOT NULL default '0',
`admin_notification_email_subject` varchar(255) NOT NULL default '',
`admin_notification_email_body` text NOT NULL default '',
`admin_notification_email_body` text,
`contactpersonfullpost` int(11) NOT NULL default '0',
`submitterinform` tinyint(1) NOT NULL default '0',
`submitnotification` tinyint(1) NOT NULL default '0',
`enable_confirmation` tinyint(1) NOT NULL DEFAULT '0',
`enable_confirmation_notification` tinyint(1) NOT NULL DEFAULT '0',
`confirmation_notification_recipients` text NOT NULL default '',
`confirmation_notification_recipients` text,
`confirmation_contactperson_subject` varchar(255) NOT NULL default '',
`confirmation_contactperson_body` text NOT NULL default '',
`confirmation_contactperson_body` text,
`redirect` VARCHAR( 300 ) NOT NULL default '',
`notificationtext` text NOT NULL,
`notificationtext` text,
`formexpires` tinyint(1) NOT NULL default '0',
`captchaactive` tinyint(1) NOT NULL default '0',
`access` tinyint(3) NOT NULL default '0',
`activatepayment` tinyint(2) NOT NULL DEFAULT '0',
`requirebilling` tinyint(2) NOT NULL DEFAULT '0',
`currency` varchar(3) NOT NULL default '',
`paymentprocessing` text NOT NULL default '',
`paymentaccepted` text NOT NULL default '',
`contactpaymentnotificationsubject` text NOT NULL default '',
`contactpaymentnotificationbody` text NOT NULL default '',
`submitterpaymentnotificationsubject` text NOT NULL default '',
`submitterpaymentnotificationbody` text NOT NULL default '',
`cond_recipients` text NOT NULL default '',
`params` text NOT NULL DEFAULT '',
`paymentprocessing` text,
`paymentaccepted` text,
`contactpaymentnotificationsubject` text,
`contactpaymentnotificationbody` text,
`submitterpaymentnotificationsubject` text,
`submitterpaymentnotificationbody` text,
`cond_recipients` text,
`params` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Forms for redFORM';

Expand Down Expand Up @@ -106,7 +106,7 @@ CREATE TABLE IF NOT EXISTS `#__rwf_submitters` (
`integration` VARCHAR(30) NOT NULL default '',
`answer_id` int(11) NOT NULL default '0',
`submitternewsletter` int(11) NOT NULL default '0',
`rawformdata` text NOT NULL default '',
`rawformdata` text,
`submit_key` varchar(45) NOT NULL,
`price` DECIMAL(10, 2) NOT NULL default '0.0',
`vat` DECIMAL(10, 2) NOT NULL default '0.0',
Expand Down Expand Up @@ -135,7 +135,7 @@ CREATE TABLE IF NOT EXISTS `#__rwf_values` (
`value` varchar(255) NOT NULL,
`label` varchar(255) NOT NULL,
`published` int(11) NOT NULL default '0',
`checked_out` int(11) NOT NULL default '0',
`checked_out` int(11) NULL,
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`field_id` int(11) NOT NULL,
`ordering` int(11) NOT NULL default '0',
Expand All @@ -153,7 +153,7 @@ CREATE TABLE IF NOT EXISTS `#__rwf_payment_request` (
`vat` DECIMAL(10, 2) NOT NULL default '0.0',
`currency` varchar(3) NOT NULL default '',
`paid` tinyint(2) NOT NULL default '0',
`note` text NOT NULL default '',
`note` text,
PRIMARY KEY (`id`),
KEY `submission_id` (`submission_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='payment requests';
Expand All @@ -178,7 +178,7 @@ CREATE TABLE IF NOT EXISTS `#__rwf_cart` (
`vat` DECIMAL(10, 2) NOT NULL default '0.0',
`currency` varchar(3) NOT NULL default '',
`paid` tinyint(2) NOT NULL default '0',
`note` text NOT NULL default '',
`note` text,
`invoice_id` VARCHAR(100) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `reference` (`reference`)
Expand All @@ -199,7 +199,7 @@ CREATE TABLE IF NOT EXISTS `#__rwf_payment` (
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`gateway` varchar(100) NOT NULL,
`status` varchar(100) NOT NULL default '',
`data` text NOT NULL default '',
`data` text,
`paid` tinyint(2) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `cart_id` (`cart_id`)
Expand All @@ -210,8 +210,8 @@ CREATE TABLE IF NOT EXISTS `#__rwf_section` (
`name` varchar(100) NOT NULL,
`class` varchar(100) NOT NULL default '',
`ordering` int(11) NOT NULL default '0',
`description` text NOT NULL default '',
`checked_out` int(11) NOT NULL default '0',
`description` text,
`checked_out` int(11) NULL,
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='form sections';
Expand Down
2 changes: 1 addition & 1 deletion component/admin/sql/updates/mysql/3.0.b.1.0.3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ ALTER TABLE `#__rwf_forms`
ADD `enable_confirmation` tinyint(1) NOT NULL DEFAULT '0',
ADD `enable_confirmation_notification` tinyint(1) NOT NULL DEFAULT '0',
ADD `confirmation_contactperson_subject` varchar(255) default NULL,
ADD `confirmation_contactperson_body` text DEFAULT NULL;
ADD `confirmation_contactperson_body` text;
2 changes: 1 addition & 1 deletion component/admin/sql/updates/mysql/3.0.b.1.0.4.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ALTER TABLE `#__rwf_forms`
ADD `confirmation_notification_recipients` text default NULL;
ADD `confirmation_notification_recipients` text;
8 changes: 4 additions & 4 deletions component/admin/sql/updates/mysql/3.2.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ CREATE TABLE IF NOT EXISTS `#__rwf_billinginfo` (
`company` varchar(150) NOT NULL,
`iscompany` tinyint(1) NOT NULL DEFAULT '0',
`vatnumber` varchar(150) NOT NULL,
`address` text NOT NULL,
`address` text NULL,
`city` varchar(150) NOT NULL,
`zipcode` varchar(150) NOT NULL,
`phone` varchar(150) NOT NULL,
Expand Down Expand Up @@ -50,7 +50,7 @@ CREATE TABLE IF NOT EXISTS `#__rwf_payment_request` (
`vat` DECIMAL(10, 2) NULL DEFAULT NULL,
`currency` varchar(3) DEFAULT NULL,
`paid` tinyint(2) NOT NULL,
`note` text NULL,
`note` text,
PRIMARY KEY (`id`),
KEY `submission_id` (`submission_id`)
) COMMENT='payment requests';
Expand All @@ -75,7 +75,7 @@ CREATE TABLE IF NOT EXISTS `#__rwf_cart` (
`vat` DECIMAL(10, 2) NULL DEFAULT NULL,
`currency` varchar(3) DEFAULT NULL,
`paid` tinyint(2) NOT NULL,
`note` text NULL,
`note` text,
PRIMARY KEY (`id`),
KEY `reference` (`reference`)
) COMMENT='payment cart';
Expand All @@ -97,7 +97,7 @@ CREATE TABLE IF NOT EXISTS `#__rwf_payment_request` (
`vat` double NULL DEFAULT NULL,
`currency` varchar(3) DEFAULT NULL,
`paid` tinyint(2) NOT NULL,
`note` text NULL,
`note` text,
PRIMARY KEY (`id`),
KEY `submission_id` (`submission_id`)
) COMMENT='submissions payment requests';
Expand Down
Loading