[Pkg-owncloud-commits] [php-sabre-vobject] 61/128: Enforcing existance of VEVENT if VCALENDAR does not have a METHOD.

David Prévot taffit at moszumanska.debian.org
Tue May 20 23:11:03 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit 2e2680ebf3888e7a3d53a94fd393d4bd5164bfec
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Tue Feb 25 11:36:12 2014 -0500

    Enforcing existance of VEVENT if VCALENDAR does not have a METHOD.
---
 lib/Sabre/VObject/Component/VEvent.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/Sabre/VObject/Component/VEvent.php b/lib/Sabre/VObject/Component/VEvent.php
index 8c21154..d9b1f06 100644
--- a/lib/Sabre/VObject/Component/VEvent.php
+++ b/lib/Sabre/VObject/Component/VEvent.php
@@ -83,10 +83,11 @@ class VEvent extends VObject\Component {
      */
     public function getValidationRules() {
 
+        $hasMethod = isset($this->parent->METHOD);
         return array(
             'UID' => 1,
             'DTSTAMP' => 1,
-            'DTSTART' => '?',
+            'DTSTART' => $hasMethod?'?':'1',
             'CLASS' => '?',
             'CREATED' => '?',
             'DESCRIPTION' => '?',

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list