forked from extern/egroupware
Add read_repository
This commit is contained in:
parent
df7ef82a06
commit
b9bcbdb06a
@ -26,17 +26,17 @@
|
|||||||
$errors[$totalerrors++] = lang("You must select at least 1 column to display");
|
$errors[$totalerrors++] = lang("You must select at least 1 column to display");
|
||||||
}
|
}
|
||||||
if (! $totalerrors) {
|
if (! $totalerrors) {
|
||||||
|
$phpgw->preferences->read_repository();
|
||||||
while (list($pref[0]) = each($this->stock_contact_fields)) {
|
while (list($pref[0]) = each($this->stock_contact_fields)) {
|
||||||
if ($ab_selected["$pref[0]"]) {
|
if ($ab_selected["$pref[0]"]) {
|
||||||
$phpgw->preferences->delete("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]);
|
$phpgw->preferences->change("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]);
|
||||||
$phpgw->preferences->add("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]);
|
|
||||||
} else {
|
} else {
|
||||||
$phpgw->preferences->delete("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]);
|
$phpgw->preferences->delete("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($mainscreen_showbirthdays) {
|
if ($mainscreen_showbirthdays) {
|
||||||
$phpgw->preferences->delete("addressbook","mainscreen_showbirthdays");
|
$phpgw->preferences->delete("addressbook","mainscreen_showbirthdays");
|
||||||
$phpgw->preferences->add("addressbook","mainscreen_showbirthdays");
|
$phpgw->preferences->add("addressbook","mainscreen_showbirthdays");
|
||||||
} else {
|
} else {
|
||||||
$phpgw->preferences->delete("addressbook","mainscreen_showbirthdays");
|
$phpgw->preferences->delete("addressbook","mainscreen_showbirthdays");
|
||||||
|
Loading…
Reference in New Issue
Block a user