[Pkg-owncloud-commits] [php-sabre-vobject] 15/25: Improved repair for default properties.
David Prévot
taffit at moszumanska.debian.org
Thu Apr 7 01:41:29 UTC 2016
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 b81d99316515a7992ca2ecbbe9ce06c1f7b251f3
Author: Evert Pot <me at evertpot.com>
Date: Wed Apr 6 00:28:31 2016 -0400
Improved repair for default properties.
---
CHANGELOG.md | 2 ++
lib/Component.php | 1 +
2 files changed, 3 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 881deda..c6a9d9c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,8 @@ ChangeLog
* Slightly better error message during validation of `N` and `ADR` properties.
* #312: Correctly extracing timezone in the iTip broker, even when we don't
have a master event. (@vkomrakov-sugar).
+* When validating a component's property that must appear once and which could
+ automatically be repaired, make sure we report the change as 'repaired'.
4.0.3 (2016-03-12)
diff --git a/lib/Component.php b/lib/Component.php
index 3d548c7..9a10ed3 100644
--- a/lib/Component.php
+++ b/lib/Component.php
@@ -640,6 +640,7 @@ class Component extends Node {
$repaired = false;
if ($options & self::REPAIR && isset($defaults[$propName])) {
$this->add($propName, $defaults[$propName]);
+ $repaired = true;
}
$messages[] = [
'level' => $repaired ? 1 : 3,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-php/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list