]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
relnotes update for Bug 253588 changes deprecating defined(Bugzilla->user)
authorbugreport%peshkin.net <>
Sat, 31 Jul 2004 09:48:26 +0000 (09:48 +0000)
committerbugreport%peshkin.net <>
Sat, 31 Jul 2004 09:48:26 +0000 (09:48 +0000)
a=justdave

docs/rel_notes.txt

index a379404fb30034f72960722b9325bf2937f12057..ab56635e69109a4b32c0b639300bf8240710772a 100644 (file)
@@ -286,8 +286,11 @@ Code Changes Which May Affect Customizations
 
 - Use Bugzilla->user->login in place of $::COOKIE{Bugzilla_login}
 
-- You can tell if there's a user logged in or not by checking if
-  Bugzilla->user exists rather than looking for $::userid==0
+- You can tell if there's a user logged in or not by using
+  Bugzilla->user rather than looking for $::userid==0.
+  In new 2.18 code, use defined(Bugzilla->user) && (Bugzilla->user->id)
+  In 2.20, this will become just (Bugzilla->user->id)
+  In templates, always test [% IF user.id %] rather than [% IF user %]
 
 
 Recommended Practice for the Upgrade