[Problems with Deleting Folders] Bug or Code Error?

Hi gang,

I'm using ProjectPier version 8.0.2 and testing in Firefox.

I create a new folder. Then I attempt to delete it. I click the "yes" radio button, enter my password, and click the submit button. Folder gets deleted. Yeah! The cancel link works fine too. However, when I click the "no" radio button and click the submit button, I'm brought to a blank white page. Any ideas? I'd like to resolve this because some users will likely select no, and click the submit button…

Here's the directory:
/application/views/files/del_folder.php

Here's the code:

--------------

<?php

  set_page_title(lang('delete folder'));
 
project_tabbed_navigation(PROJECT_TAB_FILES);
 
project_crumbs(lang('delete folder'));

?>
<form action="<?php echo $folder->getDeleteUrl() ?>" method="post">
  <?php tpl_display(get_template_path('form_errors')) ?>

   <div>
  <?php echo lang('about to delete') ?> <?php echo strtolower(lang('folder')) ?> <?php echo clean($folder->getName()) ?></div>
 
  <div>
  <label><?php echo lang('confirm delete folder') ?></label>
  <?php echo yes_no_widget('deleteFolder[really]', 'deleteFolderReallyDelete', true, lang('yes'), lang('no')) ?>
  </div>
 
  <div>
  <?php echo label_tag(lang('password')) ?>
  <?php echo password_field('deleteFolder[password]', null, array('id' => 'loginPassword', 'class' => 'medium')) ?>
  </div>
 
  <div>
  <?php echo submit_button(lang('delete folder')) ?> <a href="<?php echo $folder->getBrowseUrl() ?>"><?php echo lang('cancel') ?></a>
  </div>
</form>

--------------

If there's a code error, seems like the controllers files may be the ones to target ("application/controllers/…" specifically FilesController.class.php)?

Thanks,

Chris

Is anyone else having this issue? or able to replicate the problem?

Yes I replicated the problem.

It made me realize that there is too much verification when deleting an object: first you need to say that you're sure, then entering your password and then click on "Delete". It seems redundant to me.

You wouldn't enter your password when you say no or cancel, or you wouldn't enter it if you were not sure.
Maybe the Yes/No options could be removed.

-

Tim

Yes, I thought it seemed redundant as well. You receive the dialog box that says are you sure you want to delete this... then you click okay, and then you have to do it again... Just having to confirm it once would be simpler and cleaner.

Okay, thanks for verifying. Then it's confirmed that this is a bug needing squashed for a future version, then, right?

Thanks!

- Chris

Yep, me too having the same problem.

Not just the blank page (where can I find log files?) but I can also confirm that this double checking option is not required. Entering the password should be enough.