projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restored multi field search in item select and display of currency in customer sel.
[fa-stable.git]
/
includes
/
current_user.inc
diff --git
a/includes/current_user.inc
b/includes/current_user.inc
index 12d559dd178d752d4f4d48fa75c43352785256de..9e5938eba5e2f1bc1092420b0860aa79683119f8 100644
(file)
--- a/
includes/current_user.inc
+++ b/
includes/current_user.inc
@@
-94,9
+94,9
@@
class current_user
}
function update_prefs($price_dec, $qty_dec, $exrate_dec, $percent_dec, $showgl, $showcodes,
}
function update_prefs($price_dec, $qty_dec, $exrate_dec, $percent_dec, $showgl, $showcodes,
- $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize) {
+ $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize
, $show_hints
) {
update_user_display_prefs($this->username, $price_dec, $qty_dec, $exrate_dec, $percent_dec, $showgl,
update_user_display_prefs($this->username, $price_dec, $qty_dec, $exrate_dec, $percent_dec, $showgl,
- $showcodes, $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize);
+ $showcodes, $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize
, $show_hints
);
// re-read the prefs
$user = get_user($this->username);
// re-read the prefs
$user = get_user($this->username);
@@
-228,12
+228,17
@@
function user_pagesize()
return $_SESSION["wa_current_user"]->prefs->get_pagesize();
}
return $_SESSION["wa_current_user"]->prefs->get_pagesize();
}
+function user_hints()
+{
+ return $_SESSION["wa_current_user"]->prefs->show_hints();
+}
+
function set_user_prefs($price_dec, $qty_dec, $exrate_dec, $percent_dec, $showgl, $showcodes,
function set_user_prefs($price_dec, $qty_dec, $exrate_dec, $percent_dec, $showgl, $showcodes,
- $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize)
+ $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize
, $show_hints
)
{
$_SESSION["wa_current_user"]->update_prefs($price_dec, $qty_dec, $exrate_dec, $percent_dec, $showgl, $showcodes,
{
$_SESSION["wa_current_user"]->update_prefs($price_dec, $qty_dec, $exrate_dec, $percent_dec, $showgl, $showcodes,
- $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize);
+ $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize
, $show_hints
);
}
function add_user_js_data() {
}
function add_user_js_data() {