diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php
index 933f6534d55..e543b7e6bd1 100644
--- a/htdocs/comm/action/card.php
+++ b/htdocs/comm/action/card.php
@@ -1031,15 +1031,16 @@ if ($action == 'create') {
// Recurring event
$userepeatevent = ($conf->global->MAIN_FEATURES_LEVEL == 2 ? 1 : 0);
- if ($userepeatevent && !empty($object->recurid)) {
+ if ($userepeatevent) {
// Repeat
//print '
| ';
print ' ';
print img_picto($langs->trans("Recurrence"), 'recurring', 'class="paddingright2"');
- print '';
+ print '';
$selectedrecurrulefreq = 'no';
$selectedrecurrulebymonthday = '';
$selectedrecurrulebyday = '';
+ $reg = array();
if ($object->recurrule && preg_match('/FREQ=([A-Z]+)/i', $object->recurrule, $reg)) {
$selectedrecurrulefreq = $reg[1];
}
diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php
index 7d03def1464..22419629333 100644
--- a/htdocs/comm/action/class/actioncomm.class.php
+++ b/htdocs/comm/action/class/actioncomm.class.php
@@ -373,6 +373,16 @@ class ActionComm extends CommonObject
*/
public $status;
+ /**
+ * Properties to manage the recurring events
+ */
+ public $recurid;
+ public $recurrule;
+ public $recurdateend;
+
+ public $calling_duration;
+
+
/**
* Typical value for a event that is in a todo state
*/
|