diff --git a/README.md b/README.md
index 67a12c28f..e5738b326 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,6 @@ Getting Started
---------------
1. Install Zammad on your system
-
```
root@shell> cd /opt/
root@shell> tar -xzf zammad-1.0.1.tar.gz
@@ -22,7 +21,6 @@ Getting Started
```
2. Install all dependencies
-
```
zammad@shell> cd zammad
zammad@shell> gem install bundler
@@ -35,14 +33,12 @@ Getting Started
```
3. Configure your databases
-
```
zammad@shell> cp config/database.yml.dist config/database.yml
zammad@shell> vi config/database.yml
```
4. Initialize your database
-
```
zammad@shell> export RAILS_ENV=production
zammad@shell> rake db:create
@@ -51,7 +47,6 @@ Getting Started
```
5. Change directory to zammad (if needed) and start the web server:
-
```
zammad@shell> rake assets:precompile
zammad@shell> rails s -p 3000 # application web server
@@ -61,4 +56,3 @@ Getting Started
6. Go to http://localhost:3000/#getting_started and you'll see:
"Welcome to Zammad!", there you need to create your admin user and you need to invite other agents.
-
diff --git a/README_Install_Mac.md b/README_Install_Mac.md
index 26ae55ff9..ea62bc5fc 100644
--- a/README_Install_Mac.md
+++ b/README_Install_Mac.md
@@ -15,9 +15,9 @@ Get Zammad
----------
````shell
- test -d ~/zammad/ || mkdir ~/zammad
+ test -d ~/zammad/ || mkdir ~/zammad
cd ~/zammad/
- curl -L -O http://zammad.org/zammad-latest.tar.bz2 | tar -xj
+ curl -L -O https://ftp.zammad.com/zammad-latest.tar.bz2 | tar -xj
````
Install Zammad
diff --git a/README_Install_Ubuntu.md b/README_Install_Ubuntu.md
index 9834c0837..7e60c1908 100644
--- a/README_Install_Ubuntu.md
+++ b/README_Install_Ubuntu.md
@@ -14,7 +14,7 @@
### Get Zammad
* su zammad
* cd ~
-* wget http://ftp.zammad.com/zammad-latest.tar.gz
+* wget https://ftp.zammad.com/zammad-latest.tar.gz
* tar -xzf zammad-latest.tar.gz
* exit
@@ -53,4 +53,3 @@
### Restart nginx as root
* exit
* systemctl restart nginx
-
diff --git a/app/assets/javascripts/app/views/facebook/app_config.jst.eco b/app/assets/javascripts/app/views/facebook/app_config.jst.eco
index d9098f3e0..625d9bd8c 100644
--- a/app/assets/javascripts/app/views/facebook/app_config.jst.eco
+++ b/app/assets/javascripts/app/views/facebook/app_config.jst.eco
@@ -1,6 +1,6 @@
- <%- @T('The tutorial on how to manage a %s is hosted on our [online documentation](http://zammad.org/documentation/channel/facebook).', 'Facebook App') %>
+ <%- @T('The tutorial on how to manage a %s is hosted on our [online documentation](https://zammad.org/documentation/channel/facebook).', 'Facebook App') %>
\ No newline at end of file
+
diff --git a/app/assets/javascripts/app/views/layout_ref/communication_overview.jst.eco b/app/assets/javascripts/app/views/layout_ref/communication_overview.jst.eco
index 1b3e4cea5..f910cf9b1 100644
--- a/app/assets/javascripts/app/views/layout_ref/communication_overview.jst.eco
+++ b/app/assets/javascripts/app/views/layout_ref/communication_overview.jst.eco
@@ -7,7 +7,7 @@
Ticket Article
-
Welcome to Zammad! We want to entertain you and your whole family!
- <%- @T('The tutorial on how to manage a %s is hosted on our [online documentation](http://zammad.org/documentation/channel/twitter).', 'Twitter App') %>
+ <%- @T('The tutorial on how to manage a %s is hosted on our [online documentation](https://zammad.org/documentation/channel/twitter).', 'Twitter App') %>
-
\ No newline at end of file
+
diff --git a/app/models/chat/session.rb b/app/models/chat/session.rb
index 14d5a2d91..7f7b41e7b 100644
--- a/app/models/chat/session.rb
+++ b/app/models/chat/session.rb
@@ -41,7 +41,7 @@ class Chat::Session < ApplicationModel
def position
return if state != 'waiting'
position = 0
- Chat::Session.where(state: 'waiting').order('created_at ASC').each { |chat_session|
+ Chat::Session.where(state: 'waiting').order(created_at: :asc).each { |chat_session|
position += 1
break if chat_session.id == id
}
@@ -52,7 +52,7 @@ class Chat::Session < ApplicationModel
chat_session = Chat::Session.find_by(session_id: session_id)
return if !chat_session
session_attributes = []
- Chat::Message.where(chat_session_id: chat_session.id).each { |message|
+ Chat::Message.where(chat_session_id: chat_session.id).order(created_at: :asc).each { |message|
session_attributes.push message.attributes
}
session_attributes
@@ -60,10 +60,10 @@ class Chat::Session < ApplicationModel
def self.active_chats_by_user_id(user_id)
actice_sessions = []
- Chat::Session.where(state: 'running', user_id: user_id).order('created_at ASC').each { |session|
+ Chat::Session.where(state: 'running', user_id: user_id).order(created_at: :asc).each { |session|
session_attributes = session.attributes
session_attributes['messages'] = []
- Chat::Message.where(chat_session_id: session.id).each { |message|
+ Chat::Message.where(chat_session_id: session.id).order(created_at: :asc).each { |message|
session_attributes['messages'].push message.attributes
}
actice_sessions.push session_attributes
diff --git a/db/seeds.rb b/db/seeds.rb
index f6b45fe40..4250a6f7b 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -3029,9 +3029,9 @@ Ticket::Article.create(
Thank you for choosing Zammad.
-You will find updates and patches at http://zammad.org/. Online
-documentation is available at http://zammad.org/documentation. Get
-involved (discussions, contributing, ...) at http://zammad.org/participate.
+You will find updates and patches at https://zammad.org/. Online
+documentation is available at https://zammad.org/documentation. Get
+involved (discussions, contributing, ...) at https://zammad.org/participate.
Regards,
@@ -5193,7 +5193,7 @@ Trigger.create_or_update(
"
- result = "[1] Best Tool of the Worldsome other text\n\n[1] http://zammad.org"
+ result = "[1] Best Tool of the Worldsome other text\n\n[1] https://zammad.org"
assert_equal(result, html.html2text)
html = "
@@ -397,9 +397,9 @@ P.S.: You receive this e-mail because you are listed in our database as person w
[1] http://www.teamviewer.example/en/company/unsubscribe.aspx?id=1009645&ident=xxx'
assert_equal(result, html.html2text)
- html = "
Dave and leaned her
-days adam.
Maybe we
-want any help me that. Next morning charlie saw at their
+ html = "