SiT! Bugs

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001765SiT!portalpublic2012-01-24 13:572013-02-03 15:22
Reporterpaulvh 
Assigned Topaulh 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version3.65 LTS 
Target VersionFixed in Version 
Summary0001765: Contact Details Edit
DescriptionIf we are using LDAP the contact should not be able to edit their information.

See Diff in additional information for contactdetails.php
Additional Information***************
*** 182,187 ****
      echo ' '.gravatar($user->email, 32);
! echo "</h2>";


! echo "<form action='{$_SERVER[PHP_SELF]}?action=update' method='post'>";
      echo "<table align='center' class='vertical'>";
--- 182,190 ----
      echo ' '.gravatar($user->email, 32);
! echo "</h2>\n\n";


! if ($_SESSION['contact_source'] == 'sit')
! {
! echo "<form action='{$_SERVER[PHP_SELF]}?action=update' method='post'>";
! }
      echo "<table align='center' class='vertical'>";
***************
*** 250,252 ****
      }
! else
      {
--- 253,255 ----
      }
! elseif ($_SESSION['contact_source'] == 'sit')
      {
***************
*** 254,255 ****
--- 257,262 ----
      }
+ else
+ {
+ echo "{$user->fax}";
+ }
      echo "</td></tr>";
***************
*** 260,262 ****
      }
! else
      {
--- 267,269 ----
      }
! elseif ($_SESSION['contact_source'] == 'sit')
      {
***************
*** 265,269 ****
      }
      echo "</td></tr>\n";

! if ( $_SESSION['contact_source'] == 'sit' )
      {
--- 272,280 ----
      }
+ else
+ {
+ echo "{$user->email}";
+ }
      echo "</td></tr>\n";

! if ($_SESSION['contact_source'] == 'sit')
      {
***************
*** 274,277 ****
      echo "<p align='center'>";
! echo "<input type='hidden' name='id' value='{$id}' />";
! echo "<input type='submit' value='{$strUpdate}' />

</form>";

--- 285,291 ----
      echo "<p align='center'>";
! if ($_SESSION['contact_source'] == 'sit')
! {
! echo "<input type='hidden' name='id' value='{$id}' />";
! echo "<input type='submit' value='{$strUpdate}' />

</form>";
! }

Tagspatch
Attached Files

- Relationships

-  Notes
User avatar (0004666)
paulh (administrator)
2013-02-03 15:22

Thanks for this report paulvh I'll look at merging this ASAP

- Issue History
Date Modified Username Field Change
2012-01-24 13:57 paulvh New Issue
2012-01-24 13:57 paulvh Tag Attached: patch
2013-02-03 15:22 paulh Assigned To => paulh
2013-02-03 15:22 paulh Status new => assigned
2013-02-03 15:22 paulh Note Added: 0004666


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker