CentralAZ / Rock-CentralAZ

An open source CMS, Relationship Management System (RMS), Church Management System (ChMS), and composable application framework.
http://www.rockrms.com
17 stars 3 forks source link

[RR] Setup Thumbnails broken #46

Closed smross closed 7 years ago

smross commented 7 years ago

Prerequisites

I did not do prerequisites on the Demo site; no way to install this plugin there

Description

When attaching a PDF or JPG to a reservation (under the setup section), the 'thumbnail' for the setup shows a broken image placeholder room management _ rock rms - google chrome 2017-06-22 20 59 49

Steps to Reproduce

  1. Edit a reservation
  2. Select the "Setup Photo" Upload button
  3. Specify a file (I tried PDF and JPG)
  4. Save the reservation
  5. Find the reservation in a list/grid

Expected behavior:

A thumbnail shows a preview of the file and it's clickable for the full version

Actual behavior:

I get a 'broken image' image on the "Room Management" landing page room management _ rock rms - google chrome 2017-06-22 21 17 16 The link in my picture is to /page/~GetImage.ashx?id=306

If I click on the (broken) thumbnail I get an error page rock - page not found - google chrome 2017-06-22 21 18 21

Versions

smross commented 7 years ago

@tcavaletto the two modified files, "ReservationLava.ascx.cs" and "Reservation.lava" resolved the issue. The linked uploads/attachments both now render on the 'grid' and display when you click them

nairdo commented 7 years ago

@tcavaletto fixed this via 3f82e59.