Booked Scheduler Community Support
December 15, 2019, 10:04:16 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Bug: Export Resources & Users (demo v2.7.1 beta)  (Read 1394 times)
YZone
Full Member
***

Karma: 0
Posts: 200


« on: June 12, 2018, 02:28:53 AM »

Hi all,

On the demo version 2.7.1 beta, I have encountered 2 problems concerning the export of data to a CSV file.

The export of the resources to a CSV file returns the list with an extra LF character before each line and followed by some html code.
Code:

"Name","Status","Schedule","Resource Type","Sort Order","Location","Contact","Description","Notes","Resource Administrator","Resource Color","Reservation Minimum Length","Reservation Maximum Length","Buffer Time","Reservations can be made across days","Capacity","Resource Groups","Reservation Minimum Notice","Reservation Maximum End","Reservations must be approved","Permission is automatically granted","Requires check in/out","Autorelease Minutes","Credits (off peak)","Credits (peak)","Example Number Attribute","Example String Attribute",

"Conference Room 1","Available","Conference Rooms","",0,"","","","","","","","","","1","","","
<!DOCTYPE html>

<html lang="en" dir="ltr">
<head>
    <title>Error</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="noindex"/>
            <!--meta http-equiv="REFRESH"
  content="1800;URL=../logout.php?redirect=%2FWeb%2Fadmin%2Fmanage_resources.php%3F%26dr%3Dexport"-->
        <link rel="shortcut icon" href="../favicon.ico"/>
    <link rel="icon" href="../favicon.ico"/>
    <!-- JavaScript -->

etc ...

The export of the users results in an extra LF character before each line.
Code:

"Name","Username","Email","Phone","Organization","Position","Created","Last Login","Status","Credits","Color",

"Admin Admin","admin","admin@example.com","",ABC Org Inc.,"","6/12/18 2:00 AM","3/26/10 12:44 PM","Active","0.00","",

"User User","user","user@example.com","",XYZ Org Inc.,"","6/12/18 2:00 AM","9/16/08 1:59 AM","Active","0.00","",


I hope this can be fixed before the final release.
Thanks,

YZone
Logged
liquidvishn
Newbie
*

Karma: 0
Posts: 18


« Reply #1 on: June 25, 2018, 03:12:31 PM »

To echo off this- when adding and/or amending users- the resulting import deletes the "Name" when working with the exported csv.

Additonally, the TEMPLATE csv has different formatting than the exported csv.

EXPORTED CSV;
"Name","Username","Email","Phone","Organization","Position","Created","Last Login","Status","Credits","Color",

TEMPLATE CSV;
username,email,first name,last name,password,phone,organization,position,timezone,language,groups
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!