Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to remove logo #32

Closed
popoix opened this issue Oct 10, 2018 · 3 comments
Closed

unable to remove logo #32

popoix opened this issue Oct 10, 2018 · 3 comments
Milestone

Comments

@popoix
Copy link

popoix commented Oct 10, 2018

Hi,

i have attached a pic of my company. But finally i want delete it.
How can i do that?

Thank you.

@Pafzedog
Copy link

Hi,

same here, there is no option to do that.

any help ?

thanks

@RemiCELLARD
Copy link
Contributor

You just have to change 2 files :

In front/config.form.php, add after the line 56 (and before the line 57) :

} else if (isset($_POST['dropLogo'])) {
   if (is_dir(GLPI_PLUGIN_DOC_DIR.'/barcode')) {
      if (is_file(GLPI_PLUGIN_DOC_DIR.'/barcode/logo.png')) {
         unlink(GLPI_PLUGIN_DOC_DIR.'/barcode/logo.png');
      }
   }
   Session::addMessageAfterRedirect(__('The logo has been removed.', 'barcode'));
}

In inc/config.class.php, add after the line 97 (and before the line 98) :

         echo "<tr class='tab_bg_1'>";
         echo "<td class='tab_bg_1' colspan='4' align='center'><input type='submit' value='".__('Delete the logo', 'barcode')."' class='submit' name='dropLogo'></td>";
         echo "</tr>";

I'll create pull request 👀

RemiCELLARD added a commit to RemiCELLARD/barcode that referenced this issue Jul 21, 2021
cedric-anne pushed a commit to RemiCELLARD/barcode that referenced this issue Jul 22, 2021
@cedric-anne cedric-anne added this to the 2.6.0 milestone Jul 22, 2021
@cedric-anne
Copy link
Contributor

Done in #80.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants