Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.4

Request #9879 Worksheet::protect() shouldn't require a password.
Submitted: 2007-01-19 15:45 UTC
From: mikej at primatech dot com Assigned:
Status: Open Package: Spreadsheet_Excel_Writer (version 0.9.1)
PHP Version: 4.3.9 OS: Centos Linux 4.3
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 43 - 29 = ?

 
 [2007-01-19 15:45 UTC] mikej at primatech dot com (Mike Jones)
Description: ------------ I want to protect a worksheet to prevent accidental formula overwrites, but I don't really want to password protect it. If I use Worksheet::protect(), I'm forced to give a password. It would be nice if the password was optional. Here is a replacement function: function protect($password = NULL) { $this->_protect = 1; if ($password != NULL) $this->_password = $this->_encodePassword($password); } I have worked around the problem for now by just setting the private member Worksheet::_protected to 1, but this is obviously not ideal.

Comments

 [2009-11-29 08:07 UTC] cschmitz (Carsten Schmitz)
-Status: Open +Status: Assigned -Assigned To: +Assigned To: cschmitz
 [2010-11-19 18:12 UTC] cschmitz (Carsten Schmitz)
-Status: Open +Status: Assigned