[Fusionforge-commits] r13494 - trunk/src/common/docman/views

Franck VILLAUME nerville at fusionforge.org
Fri Jun 10 14:52:35 CEST 2011


Author: nerville
Date: 2011-06-10 14:52:35 +0200 (Fri, 10 Jun 2011)
New Revision: 13494

Modified:
   trunk/src/common/docman/views/editfile.php
Log:
no you cannot edit deleted file...

Modified: trunk/src/common/docman/views/editfile.php
===================================================================
--- trunk/src/common/docman/views/editfile.php	2011-06-10 12:48:44 UTC (rev 13493)
+++ trunk/src/common/docman/views/editfile.php	2011-06-10 12:52:35 UTC (rev 13494)
@@ -101,7 +101,7 @@
 
 <?php
 
-	if ((!$d->isURL()) && ($d->isText())) {
+	if ((!$d->isURL()) && ($d->isText()) && $d->getStateID() != '2') {
 		if ($g->useCreateOnline()) {
 			echo '<tr>
 				<td>';
@@ -150,14 +150,16 @@
 	</tr>
 	<tr>
 		<td>
-		<?php if ($d->isURL()) { ?>
+		<?php	if ($d->getStateID() != '2') {
+				if ($d->isURL()) { ?>
 		<strong><?php echo _('Specify an outside URL where the file will be referenced') ?> :</strong><?php echo utils_requiredField(); ?><br />
 		<input type="text" name="file_url" size="50" value="<?php echo $d->getFileName() ?>" />
-		<?php } else { ?>
+		<?php 		} else { ?>
 		<strong><?php echo _('OPTIONAL: Upload new file') ?></strong><br />
 		<input type="file" name="uploaded_data" size="30" />
 		<?php
-		}
+				}
+			}
 		?>
 		</td>
 	</tr>




More information about the Fusionforge-commits mailing list